package Code8;

public class test3 {
    public static void main(String[] args) {
        int[][] arr = {
                {22,66,44},
                {77,33,88},
                {25,45,65},
                {11,66,99}};
        int sum = 0;
        for (int i = 0; i < arr.length; i++) {
            int sum1 = 0;

            for (int j = 0; j < arr[i].length; j++) {
                sum += arr[i][j];
                sum1 += arr[i][j];
            }
            System.out.println("第"+(i+1)+"季度销售值总额为："+sum1);
            System.out.println();
        }
        System.out.println("全年的销售额为："+sum);

    }
}
